<template>
  <div>
    我的报名列表
  </div>
</template>

<script>
  import {userJoin} from '../api/user'
  import {mapState} from 'vuex'
  export default {
    computed: {
      ...mapState({
        userInfo:state=>state.user.userInfo
      })
    },
    created () {
      let {userInfo} = this
      let userId = userInfo ? userInfo._id : ''
      userJoin(userId).then(res=>{
        console.log(res);
      })
    },
  }
</script>

<style lang="less" scoped>

</style>